package com.example.pojo.shangPinPagePojo;

import java.util.List;

public class Page<T> {
    private List<T> pageDate;//页面数据
    private int count;//总条数
    private int pageTotal; //总页数
    private int pageNum; // 页码数
    private int pageSize; //每页显示的条数

    public List<T> getPageDate() {
        return pageDate;
    }

    public void setPageDate(List<T> pageDate) {
        this.pageDate = pageDate;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(int pageTotal) {
        this.pageTotal = pageTotal;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "Page{" +
                "pageDate=" + pageDate +
                ", count=" + count +
                ", pageTotal=" + pageTotal +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                '}';
    }
}
